package com.ruoyi.uni.service;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.uni.domain.DcCustomer;
import com.ruoyi.uni.domain.DcGoods;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface uniService {
    public AjaxResult login(String jsCode);

    public DcCustomer getDcCustomerByToken(HttpServletRequest httpServletRequest);

    public AjaxResult updateName(String name,Long id);
    public AjaxResult updateSex(Long name,Long id);
    public AjaxResult updateTel(String name,Long id);
    public AjaxResult updateEmail(String name,Long id);
    public AjaxResult selectCustomerById(Long id);

    public AjaxResult getTypeList();
    public AjaxResult submitOrder(JSONObject j, HttpServletRequest httpServletRequest);
    public AjaxResult pay(String orderId);
    public AjaxResult getOrderDetailById(String orderId);

    public AjaxResult selectOrderByStatus(int status,HttpServletRequest httpServletRequest);

    public AjaxResult cancelOrder(String id);

    public AjaxResult updateCover(String avatarUrl,HttpServletRequest httpServletRequest);

}
